package com.gnerv.sylvanas.framework.common.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Data;

/**
 * @author Gnerv LiGen
 */
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({"page", "size", "total"})
public class RestResultPage {

    private int page;
    private int size;
    private int total;

    private RestResultPage() {
    }

    public RestResultPage(int page, int size, int total) {
        this.page = page;
        this.size = size;
        this.total = total;
    }

}
